import request from '@/utils/request'
import { ref } from 'vue'
export default () => {
	const partner = ref({
		ID: 1,
		UpdatedAt: "",
		User: null,
		address: "四川省达州市通川区巴渠东路",
		coordinates: {
			longitude: 107.46621141419087,
			latitude: 31.22456700217444
		},
		introduce: "",
		license_number: "",
		logo: "",
		mobile: "",
		name: "",
		open_time: "",
		principal_name: "",
		qr: "",
		status: 2,
		user_id: 1,
		wechat: "",
	})
	const getPartner = async () => {
		partner.value = await request.get('mini/partner/one')
	}

	return { getPartner, partner }
}